package com.guoguo.service;

import com.guoguo.base.PageBean;
import com.guoguo.entity.Album;
import com.guoguo.entity.vo.AlbumsVO;
import com.guoguo.entity.vo.CommentVO;
import com.guoguo.entity.vo.FavoriteVO;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/8/28.
 */
public interface AlbumService {

    /**
     * 查询所有专辑
     *
     * @param
     * @return
     */
    PageBean<AlbumsVO> selectAlbumList(int pageNum, int pageSize);

    PageBean<FavoriteVO> getAlbumList(String userId, int pageNum, int pageSize);

    List<Album> selectBy(Album albums);
    List<Album> getAlbum();

    /**
     * 获取专辑所有评论
     *
     * @param pageNum
     * @param albId
     * @return
     */
    PageBean<CommentVO> getAlbumComment(String albId, int pageNum, int pgeSize);

    PageBean<CommentVO> getHotAlbumComment(String albId, int pageNum, int pageSize);

    int deleteAlbumInfo(String albId);


    boolean addAlbum(String albId, String albName, String albDescription,String originalPrice,String presentPrice, String authorId, String modelId, String cateIds, String imgIds, String converIds);

    int insert(Album albums);

    int insertSelective(Album albums);

    int countBy(Album albums);

    AlbumsVO selectByPrimaryKey(String albId);

    int deleteByPrimaryKey(String albId);

    int deleteBy(Album albums);

    int updateBySelective(Album albums);

    int updateBy(Album albums);

    int updateByPrimaryKeySelective(Album albums);

    int updateByPrimaryKey(String albId);

    /**
     * 逻辑删除
     */
    int UDByPrimaryKey(String albId);
}
